package com.sasis.model;
// Generated 2007-5-11 17:22:18 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_TRANSFER_SAVEGUARD"
 *     
 */

public class FlightTransferSaveguard extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightTransferInfoId;
    private String saveguard;
    private String memo;
    private Integer operator;
    private Timestamp operatDate;


    // Constructors

    /** default constructor */
    public FlightTransferSaveguard() {
    }

	/** minimal constructor */
    public FlightTransferSaveguard(Integer flightTransferInfoId) {
        this.flightTransferInfoId = flightTransferInfoId;
    }
    
    /** full constructor */
    public FlightTransferSaveguard(Integer flightTransferInfoId, String saveguard, String memo, Integer operator, Timestamp operatDate) {
        this.flightTransferInfoId = flightTransferInfoId;
        this.saveguard = saveguard;
        this.memo = memo;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_TRANSFER_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightTransferInfoId() {
        return this.flightTransferInfoId;
    }
    
    public void setFlightTransferInfoId(Integer flightTransferInfoId) {
        this.flightTransferInfoId = flightTransferInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="SAVEGUARD"
     *             length="1024"
     *         
     */

    public String getSaveguard() {
        return this.saveguard;
    }
    
    public void setSaveguard(String saveguard) {
        this.saveguard = saveguard;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="1024"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Timestamp operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightTransferInfoId").append("='").append(getFlightTransferInfoId()).append("' ");			
      buffer.append("saveguard").append("='").append(getSaveguard()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightTransferSaveguard) ) return false;
		 FlightTransferSaveguard castOther = ( FlightTransferSaveguard ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightTransferInfoId()==castOther.getFlightTransferInfoId()) || ( this.getFlightTransferInfoId()!=null && castOther.getFlightTransferInfoId()!=null && this.getFlightTransferInfoId().equals(castOther.getFlightTransferInfoId()) ) )
 && ( (this.getSaveguard()==castOther.getSaveguard()) || ( this.getSaveguard()!=null && castOther.getSaveguard()!=null && this.getSaveguard().equals(castOther.getSaveguard()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightTransferInfoId() == null ? 0 : this.getFlightTransferInfoId().hashCode() );
         result = 37 * result + ( getSaveguard() == null ? 0 : this.getSaveguard().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }   





}
